
<?php
/** @var IncidenciaController $this */
/** @var Incidencia $model */
/** @var AweActiveForm $form */
Yii::app()->clientScript->scriptMap['jquery.js'] = false;
//plugin select2
Util::tsRegisterAssetJs('_form_modal.js');
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
    'type' => 'horizontal',
    'id' => 'tinstitucion-form',
    'enableAjaxValidation' => false,
    'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
    'enableClientValidation' => true,
        ));

$mensaje = $model->isNewRecord ? "Agregar Institucion" : "Actualizar Titulo";
?>
<div class="modal-header">
    <a class="close" data-dismiss="modal">&times;</a>
    <h4><i class="icon-fire-extinguisher"></i> <?php echo $mensaje ?></h4>
</div>
<div class="modal-body">
    <p class="note">
        <?php echo $form->textFieldRow($model, 'ins_nombreinstitucion', array('maxlength' => 200)) ?>

        <?php echo $form->textFieldRow($model, 'ins_nivelinstruccion', array('maxlength' => 100)) ?>


</div>
<div class="modal-footer">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'type' => 'success',
        'icon' => 'ok',
        'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
        'htmlOptions' => array(
            'onClick' => 'js:ajaxSaveInstitucion("#tcursocapacitacion-form");')
    ));
    ?>
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'icon' => 'remove',
        'label' => Yii::t('AweCrud.app', 'Cancel'),
        'htmlOptions' => array('data-dismiss' => 'modal')
    ));
    ?>
</div>





<?php $this->endWidget(); ?>
